/*
** my_str_isalpha.c for my_str_isalpha in /home/labonn_c//Documents/piscine/Jour_O6
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Mon Oct 10 21:26:15 2011 christophe labonnemartinez
** Last update Tue Oct 25 22:29:56 2011 christophe labonnemartinez
*/

int	my_str_isalpha(char *str)
{
  int i;
  int j;

  i = 0;
  j = 0;
  if (str[0] == '\0')
    return (1);
  while (str[i] != '\0')
    {
      if ((str[i] < 'a' || str[i] > 'z') && (str[i] < 'A' || str[i] > 'Z'))
	{
	  j = j + 1;
	}
      i = i + 1;
    }
  if (j > 0)
    return (0);
  else if (j == 0)
    return (1);
}
